<include file="Public/min-header"/>
<div class="wrapper">
    <include file="Public/breadcrumb"/>
    <section class="content">
        <div class="row">
            <div class="col-sm-12">
                <div class="box">


                    <!-- /.box-header -->
                    <form action="{:U('Messages/message_re')}" method="post" class="form-horizontal" id="category_form">
                        <input name="m_id" type="hidden" value="{$data.id}">
                        <div class="box-body">
                            <div style="margin-left: 100px;">
                                用户:{$user.nickname}/邮箱：{$user.email}，于{$data.add_time|date='Y-m-d H:i:s',###}提问：
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">问题</label>
                                <div class="col-sm-6">
                                    <h6>
                                        {$data.content}
                                    </h6>
                                </div>
                            </div>
                            <php>if(count($lists)>0){</php>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">会话</label>
                                    <div class="col-sm-6">

                                      <foreach name="lists" item="v" key="k" >
                                          <if condition="$v.user_id gt 0">{$v.user_id|get_user_name}<else/>管理员</if>{$v.add_time|date='m-d H:i',###} 回复：{$v.content}  <br></foreach>

                                    </div>
                                </div>

                            <php>}</php>





                            <div class="form-group">
                                <label class="col-sm-2 control-label">回复</label>
                                <div class="col-sm-6">
                                    <textarea rows="4"  class="form-control " cols="60" id="re_content" name="re_content"></textarea>
                                    <!--<input type="text" placeholder="提问时间" readonly  class="form-control large"  value=" {$data.add_time|date='Y-m-d H:i:s',###}">-->
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label"> </label>
                                <div class="col-sm-6">
                                    <button type="submit"   class="btn btn-primary pull-right"><i class="icon-ok"></i>提交  </button>
                                </div>
                            </div>

                        </div>
                        <!--<div class="box-footer">-->
                            <!--<input type="hidden" name="id" value="{$goods_category_info.id}">-->
                            <!--<button type="reset" class="btn btn-primary pull-left"><i class="icon-ok"></i>重填  </button>-->
                            <!--<button type="button" onclick="ajax_submit_form('category_form','{:U('Goods/addEditCategory?is_ajax=1')}');" class="btn btn-primary pull-right"><i class="icon-ok"></i>提交  </button>-->
                        <!--</div>-->
                    </form>
                </div>
            </div>
        </div>
    </section>
</div>


</body>
</html>